<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>flatpak</Name>
        <Homepage>https://flatpak.org</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <Summary>Application distribution framework</Summary>
        <Description>Linux application sandboxing and distribution framework, formerly xdg-app</Description>
        <Archive sha1sum="807b4fe57b42cbbd1b7da18efdae8afcb19bfcef" type="tarxz">https://github.com/flatpak/flatpak/releases/download/1.15.3/flatpak-1.15.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>xmlto</Dependency>
            <Dependency>zstd-devel</Dependency>
            <Dependency>util-linux</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>eudev-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency versionFrom="1.2.12">zlib-devel</Dependency>
            <Dependency versionFrom="0.4.0">bubblewrap</Dependency>
            <Dependency>polkit-devel</Dependency>
            <Dependency>libseccomp-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>dconf-devel</Dependency>
            <Dependency>json-glib-devel</Dependency>
            <Dependency>appstream-glib-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>python3-six</Dependency>
            <Dependency versionFrom="2019.2">ostree-devel</Dependency>
            <Dependency>python3-pyparsing</Dependency>
            <Dependency>xdg-dbus-proxy</Dependency>
            <Dependency>elogind-devel</Dependency>
            <Dependency versionFrom="2.9.9">fuse-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>fuse3-devel</Dependency>
            <Dependency>appstream-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!--Patch level="1">bubblewrap_libglnx_submodule.patch</Patch-->
            <!--Patch>flatpak-1.0.2-var_symlink_fix.diff</Patch-->
        </Patches>
    </Source>

    <Package>
        <Name>flatpak</Name>
        <RuntimeDependencies>
            <Dependency>zstd</Dependency>
            <Dependency>xorg-app</Dependency>
            <Dependency versionFrom="0.4.0">bubblewrap</Dependency>
            <Dependency>fuse</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>gpgme</Dependency>
            <Dependency>gnupg</Dependency>
            <Dependency>libXau</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libsoup</Dependency>
            <Dependency>json-glib</Dependency>
            <Dependency>libarchive</Dependency>
            <Dependency>libseccomp</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>dconf</Dependency>
            <Dependency versionFrom="2019.2">ostree</Dependency>
            <Dependency>polkit</Dependency>
            <Dependency>appstream-glib</Dependency>
            <Dependency>python3-pyparsing</Dependency>
            <Dependency>libassuan</Dependency>
            <Dependency>libgpg-error</Dependency>
            <Dependency>xdg-dbus-proxy</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>fuse3</Dependency>
            <Dependency>appstream</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="library">/usr/libexec</Path>
            <Path fileType="data">/usr/share/bash-completion</Path>
            <Path fileType="data">/usr/share/fish/vendor_completions.d/</Path>
            <Path fileType="data">/usr/share/dbus-1</Path>
            <Path fileType="data">/usr/share/polkit-1</Path>
            <Path fileType="data">/usr/share/flatpak</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="locale">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="doc">/usr/share/zsh</Path>
            <Path fileType="data">/usr/share/fish/vendor_conf.d/flatpak.fish</Path>
        </Files>
        <AdditionalFiles>
            <!--AdditionalFile target="/etc/profile.d/flatpak-bindir.sh" permission="0644" owner="root">flatpak-bindir.sh</AdditionalFile-->
            <AdditionalFile target="/etc/flatpak/remotes.d/flathub.flatpakrepo" permission="0644" owner="root">flathub.flatpakrepo</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <!--COMAR script="package.py">System.Package</COMAR-->
        </Provides>
    </Package>

    <Package>
        <Name>flatpak-devel</Name>
        <Summary>Development files for flatpak</Summary>
        <RuntimeDependencies>
            <Dependency release="current">flatpak</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>ostree-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
        </Files>
    </Package>

    <History>
        <Update release="18">
            <Date>2023-03-15</Date>
            <Version>1.15.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="17">
            <Date>2022-12-31</Date>
            <Version>1.15.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="16">
            <Date>2022-05-05</Date>
            <Version>1.12.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="15">
            <Date>2021-10-25</Date>
            <Version>1.12.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="14">
            <Date>2021-06-07</Date>
            <Version>1.11.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Berk Çakar</Name>
            <Email>berk2238@hotmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2021-04-29</Date>
            <Version>1.10.2</Version>
            <Comment>Fixed flatpak does nothing.</Comment>
            <Name>Berk Çakar</Name>
            <Email>berk2238@hotmail.com</Email>
        </Update>
    	<Update release="12">
            <Date>2021-04-25</Date>
            <Version>1.10.2</Version>
            <Comment>Version bump</Comment>
            <Name>Sami BABAT</Name>
            <Email>samibabat@gmail.com</Email>
        </Update>
        <Update release="11">
            <Date>2021-04-06</Date>
            <Version>1.6.3</Version>
            <Comment>Update dependencies</Comment>
            <Name>Berkan Şahin</Name>
            <Email>cicektaksi@tutanota.com</Email>
        </Update>
        <Update release="10">
            <Date>2020-04-02</Date>
            <Version>1.6.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2020-03-10</Date>
            <Version>1.4.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2019-07-07</Date>
            <Version>1.4.2</Version>
            <Comment>Version bump..</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2019-04-14</Date>
            <Version>1.2.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2018-11-19</Date>
            <Version>1.1.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-10-13</Date>
            <Version>1.0.4</Version>
            <Comment>Version bump</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2018-08-23</Date>
            <Version>1.0.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2018-07-08</Date>
            <Version>0.11.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2018-02-16</Date>
            <Version>0.11.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2018-02-03</Date>
            <Version>0.10.3</Version>
            <Comment>First release.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
